import App from './App'


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import store from './store/index.js'




import uView from 'uview-ui'
Vue.use(uView)

Vue.mixin({
	computed:{
		statusBar(){
			return uni.getSystemInfoSync().statusBarHeight
		},
		navBar(){
			// #ifdef MP
			return uni.getSystemInfoSync().statusBarHeight+46
			// #endif
			// #ifndef MP
			return uni.getSystemInfoSync().statusBarHeight+44
			// #endif
		},
		themeColor(){
			return{
				
				r:0, 
				g:122, 
				b:255, 
				
				hex:"#007aff" 
			}
		}
	},
})


import MescrollBody from "@/components/mescroll/mescroll-body/mescroll-body.vue"
Vue.component('mescroll-body', MescrollBody)

const app = new Vue({
	store,
	
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  
  return {
    app
  }
}
// #endif

Date.prototype.Format = function (fmt) {
	var o = {
		"M+": this.getMonth() + 1,
		"d+": this.getDate(),
		"H+": this.getHours(), 
		"m+": this.getMinutes(),
		"s+": this.getSeconds(),
		"q+": Math.floor((this.getMonth() + 3) / 3),
		"S": this.getMilliseconds()
	};
	if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
	for (var k in o)
	if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
	return fmt;
}